home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / C / Comet2.1.3 Folder / include / macdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-19  |  1.4 KB  |  45 lines  |  [TEXT/????]

  1. /*
  2.     Copyright Cornell University 1986.  All rights are reserved.
  3. */
  4.  
  5. /* this file contains macintosh globals not included in the system files */
  6.  
  7. /* 7/9/87 kevin added CurStackBase */
  8. /* 3/14/89 kevin added KEYPAD3 */
  9.  
  10. #define CurApName         ((char *) 0x910)        /* location of name of application */
  11. #define CurStackBase    ((char *) 0x908)        /* location of base of stack */
  12. #define GZRootHnd         ((Handle) 0x328)        /* root handle for GrowZone [handle] */
  13. #define SaveVisRgn        ((Handle) 0x9F2)        /* BeginUpdate stashes handle here */
  14. #define EventQueue         (EventRecord *) 0x14A)    /* location of name of application */
  15.  
  16. /* drawing stuff */
  17. #define ScrnBase        ((long *) 0x824)        /* ptr to base of screen */
  18. #define HiliteMode        ((char *) 0x938)        /* sets Color highlight mode on */
  19. #define SETHILITE()                                /* a NOOP or ... (*HiliteMode &= 0x7F;) */
  20.  
  21. /* Scrap stuff */
  22. #define ScrapSize        ((long *) (0x960))
  23. #define ScrapHandle        (* (Handle *) (0x964))
  24. #define ScrapCount        ((short *) (0x968))
  25. #define ScrapState        ((short *) (0x96A))
  26. #define ScrapName        ((char *) 0x96c)
  27.  
  28. #define TEScrLen         (*( (short *)  0xab0))
  29. #define TEScrHandle     (*( (Handle *)  0xab4))
  30.  
  31. #define BootDrive          ((short *) 0x210)
  32. #define SFSaveDisk      ((short *) 0x214)
  33. #define CurDirStore        ((long *) 0x398)
  34.  
  35. #define OLDKEYBOARD        0
  36. #define PLUSKEYBOARD    1
  37.  
  38. #define NORMKEYPAD    0
  39. #define KEYPAD1        1
  40. #define KEYPAD2        2
  41. #define KEYPAD3        3
  42.  
  43. #define KEYMODMASK    0x0F80
  44.  
  45.